package com.gzj.environment.admin.controller.collectData;

import com.gzj.environment.framework.annotation.ResponseResult;
import com.gzj.environment.model.collectData.dto.AirCollectData;
import com.gzj.environment.module.collectData.service.AirCollectDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/collectData/air")
@ResponseResult
public class AirCollectDataController {

    @Autowired
    private AirCollectDataService airCollectDataService;

    @GetMapping("/all")
    public List<AirCollectData> findAll() {
        return airCollectDataService.findAll();
    }
}
